package demo.rabbitmq.springboot.consumer;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

/**
 * @description description
 * @author zhouxinghuai
 * @date 2018-10-30
 */
@Service
@RabbitListener(queues = "FIRST_QUEUE")
public class FirstConsumer {

    @RabbitHandler
    public String process(String msg) {
        System.out.println(" first queue received msg : " + msg);
        return msg;
    }
    
}
